from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By

# 获取到下拉框

chrome = webdriver.Chrome()
chrome.get('http://127.0.0.1/')
select = chrome.find_element(by=By.ID, value='login')
# 找到下拉框的位置
select.find_elements(by=By.ID, value='login')

